import Opt from '@/components/dt/info/Opt.js'

class DetailColumn extends Opt {
  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
      {
        type: 'index',
        title: '序号',
        minWidth: 50
      },
      {
        field: 'workNo',
        title: '工号',
        minWidth: 90
      },
      {
        field: 'userName',
        title: '姓名',
        minWidth: 90
      },
      {
        field: 'shouldBonusAmount',
        title: '应付奖金总额(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent30',
        title: '30%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent40',
        title: '40%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent45',
        title: '45%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent50',
        title: '50%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent60',
        title: '60%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent70',
        title: '70%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent80',
        title: '80%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent90',
        title: '90%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'percent100',
        title: '100%(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'othersPercent',
        title: '其他比例(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'handerAmount',
        title: '交房奖金(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      },
      {
        field: 'bonusPool',
        title: '计提奖金池(元)',
        minWidth: 140,
        cell: {
          text: { type: 'number' }
        }
      }
    ]
  }
}

export default DetailColumn
